<template>
  <view class="test-page">
    <!-- 页面标题 -->
    <view class="page-header">
      <text class="page-title">生活方式与习惯改善计划</text>
      <text class="page-subtitle">Lifestyle Improvement Plan</text>
    </view>

    <!-- 改善计划组件 -->
    <LifestyleImprovementPlan />

    <!-- 使用说明 -->
    <view class="usage-info">
      <view class="info-panel">
        <view class="panel-header">
          <text class="panel-title">使用说明</text>
        </view>
        
        <view class="info-content">
          <view class="info-item">
            <text class="info-label">组件功能：</text>
            <text class="info-value">展示生活方式与习惯的层次化改善计划</text>
          </view>
          
          <view class="info-item">
            <text class="info-label">主要分类：</text>
            <text class="info-value">饮食、营养、运动、吸烟情况、饮酒情况</text>
          </view>
          
          <view class="info-item">
            <text class="info-label">子节点组件：</text>
            <text class="info-value">使用ItemWithImagesCard展示具体改善建议</text>
          </view>
          
          <view class="info-item">
            <text class="info-label">交互功能：</text>
            <text class="info-value">支持编辑、添加图片、修改内容</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
/**
 * 生活方式与习惯改善计划测试页面
 * 用于测试和展示LifestyleImprovementPlan组件
 * @author AI Assistant
 * @description 提供组件功能展示和使用说明
 */

import LifestyleImprovementPlan from '@/components/LifestyleImprovementPlan.vue'
</script>

<style lang="scss" scoped>
.test-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding-bottom: 40rpx;
}

.page-header {
  padding: 60rpx 32rpx 40rpx;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20rpx);
  border-radius: 0 0 32rpx 32rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  
  .page-title {
    display: block;
    font-size: 48rpx;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16rpx;
  }
  
  .page-subtitle {
    font-size: 28rpx;
    color: #7f8c8d;
    font-weight: 400;
  }
}

.usage-info {
  margin: 32rpx;
}

.info-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24rpx;
  padding: 32rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20rpx);
}

.panel-header {
  margin-bottom: 32rpx;
  
  .panel-title {
    font-size: 36rpx;
    font-weight: 600;
    color: #2c3e50;
  }
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8rpx;
  
  .info-label {
    font-size: 28rpx;
    font-weight: 600;
    color: #34495e;
  }
  
  .info-value {
    font-size: 26rpx;
    color: #7f8c8d;
    line-height: 1.4;
    padding-left: 20rpx;
  }
}

</style>
